import { Button } from 'antd';
import TableRender from '../component/TableRender';

const StockSummary = (props) => {

  const { data, realColumns, updatePageConfig, changeShowDetail } = props;

  const TableRenderProps = {
    headerHeight: 200,
    data,
    columns: realColumns,
    updatePageConfig
  }

  return (
    <div style={{ background: '#fff', padding: '16px' }}>
      <div style={{ display: 'flex', justifyContent: 'space-between' }}>
        <Button onClick={changeShowDetail}>返回历史打印记录</Button>
      </div>
      <TableRender {...TableRenderProps} />
    </div>
  );
};
export default StockSummary;